import request from '@/utils/request'

export function saveOrUpdatePersonInfo(data) {
  return request({
    url: '/personInfoController/saveOrUpdatePersonInfo',
    method: 'post',
    data
  })
}

export function pageListPersonInfo(current,pageSize,data) {
  return request({
    url: '/personInfoController/pagePersonInfo',
    method: 'get',
    params:{
      current,
      pageSize,
      startTime:data.startTime,
      endTime:data.endTime,
      name:data.name,
      education:data.education,
      expectedPosition:data.expectedPosition,
      graduationSchool:data.graduationSchool,
      reviewer:data.reviewer
    }
  })
}

export function pagePersonAdopt(current,pageSize) {
  return request({
    url: '/personInfoController/pagePersonAdopt',
    method: 'get',
    params:{
      current,
      pageSize
    }
  })
}



export function listPersonInfo(current,pageSize) {
  return request({
    url: '/personInfoController/pagePersonInfo',
    method: 'get',
    params: {
      current:current,
      pageSize:pageSize,
    }
  })
}


export function selectPersonInfoById(id) {
  return request({
    url: `/personInfoController/getPersonInfoById/${id}`,
    method: 'get'
  })
}

export function delPersonInfo(id,data) {
  return request({
    url: `/personInfoController/delPersonInfo/${id}`,
    method: 'delete',
    data
  })
}

export function emailNotice(id,data) {
  return request({
    url: `/personInfoController/emailNotice/${id}`,
    method: 'post',
    data
  })
}

export function passTheInterview(id,data) {
  return request({
    url: `/personInfoController/passTheInterview/${id}`,
    method: 'post',
    data
  })
}

